let yrem = function () {
  var dip = document.documentElement.clientWidth;
  //375是设计图的宽度
  var rootFontSize = dip / 375;
  document.documentElement.style.fontSize = rootFontSize + "px"
}
//页面加载完成
yrem()
//窗口改变时,重新计算根字体大小
window.onresize = yrem;

export default yrem